package org.llc.user.dto.requst;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 用户名/手机号 + 密码 + 验证码登录DTO
 *
 * @author llc
 * @date 2019/11/27 12:15
 * @since 1.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "ReqVerificationCodeLoginDTO", description = "用户名/手机号+ 密码 + 验证码登录DTO")
public class ReqVerificationCodeLoginDTO extends ReqPasswordLoginDTO {

    @NotBlank(message = "验证码为空")
    @ApiModelProperty(value = "验证码",required = true)
    private String verificationCode;

    @NotBlank(message = "验证码唯一键为空")
    @ApiModelProperty(value = "验证码唯一键",required = true)
    private String key;
}
